﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

namespace HF.WorkFlow.DataContract
{
    /// <summary>
    /// 变量信息数据契约
    /// </summary>
    /// <remarks>描述变量信息的数据契约</remarks>
    [DataContract]
    public class WorkTaskVarEntity
    {
        /// <summary>
        /// 变量Id
        /// </summary>
        [DataMember]
        public string WorkTaskVarId { get; set; }
        /// <summary>
        /// 流程模板Id
        /// </summary>
        [DataMember]
        public string WorkFlowId { get; set; }
        /// <summary>
        /// 任务模板Id
        /// </summary>
        [DataMember]
        public string WorkTaskId { get; set; }
        /// <summary>
        /// 变量名称
        /// </summary>
        [DataMember]
        public string VarName { get; set; }
        /// <summary>
        /// 任务类型
        /// </summary>
        [DataMember]
        public string VarType { get; set; }
        /// <summary>
        /// 数据库表名
        /// </summary>
        public string TableName { get; set; }
        /// <summary>
        /// 表字段映射
        /// </summary>
        [DataMember]
        public string TableField { get; set; }
        /// <summary>
        /// 初始值
        /// </summary>
        [DataMember]
        public string InitValue { get; set; }
        /// <summary>
        /// 访问类型,WorkFlow或者WorkTask
        /// </summary>
        [DataMember]
        public string AccessType { get; set; }
    }
}
